package com.ruoyi.traces.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户产品对象 trace_user_product
 * 
 * @author ruoyi
 * @date 2023-02-17
 */
public class TraceUserProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 用户 */
    @Excel(name = "用户")
    private String username;

    /** 产品id */
    @Excel(name = "产品id")
    private String productId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 材料id */
    @Excel(name = "材料id")
    private String materialId;

    /** 材料名称 */
    @Excel(name = "材料名称")
    private String materialName;

    /** 查询次数 */
    @Excel(name = "查询次数")
    private Long checkNumber;

    /** 首次查询时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "首次查询时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    /** 溯源id */
    @Excel(name = "溯源id")
    private String sourceId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setMaterialId(String materialId) 
    {
        this.materialId = materialId;
    }

    public String getMaterialId() 
    {
        return materialId;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setCheckNumber(Long checkNumber) 
    {
        this.checkNumber = checkNumber;
    }

    public Long getCheckNumber() 
    {
        return checkNumber;
    }
    public void setCheckTime(Date checkTime) 
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime() 
    {
        return checkTime;
    }
    public void setSourceId(String sourceId) 
    {
        this.sourceId = sourceId;
    }

    public String getSourceId() 
    {
        return sourceId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("materialId", getMaterialId())
            .append("materialName", getMaterialName())
            .append("checkNumber", getCheckNumber())
            .append("checkTime", getCheckTime())
            .append("sourceId", getSourceId())
            .toString();
    }
}
